package com.wondersgroup.wuhan_demo.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.wondersgroup.wuhan_demo.R;
import com.wondersgroup.wuhan_demo.entity.DoctorVo;

import java.util.List;

public class DoctorAdapter extends BaseQuickAdapter<DoctorVo,BaseViewHolder> {

    public DoctorAdapter(int layoutResId, @Nullable List<DoctorVo> data){
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, DoctorVo item) {
        helper.setText(R.id.doctorName,item.getDoctorName())
                .setText(R.id.desc,"擅长："+item.getDescription());
    }
}
